Mesoscopic modelling of frustration in microemulsions.