GAVÀ, Sant Miquel d’Eramprunyà, S-XII-XIII