Gaussian curvature in an Ising model of microemulsions