Thermodynamic Network Model for Predicting Effects of Substrate Addition and Other Perturbation on Subsurface Microbial Communities