Calculation of the phase behavior of lipids