Understanding the stability of lipid bilayers