Thermodynamics in Bioenergetics