Optimization of wastewater treatment plant operation for greenhouse gas mitigation.