Theory of lipid monolayer and bilayer chain-melting phase transitions.