Thermodynamics of Microbiology