Free-energy calculation methods for collective phenomena in membranes