Thermodynamics of Acidophiles: Energetics of microbial growth, response to substrate availability, and interactions with heavy metals