Algorithm to calculate area per lipid headgroup (APL) and bilayer thickness in molecular simulations of lipid bilayers -