A plant-wide model describing GHG emissions and nutrient recovery options for water resource recovery facilities.