Thermodynamic factors determining the permeability barrier properties of lipid bilayers