Lipid phase transitions and membrane function