Scalar field model applied to the lamellar to the inverse hexagonal phase transition in lipid systems