Habitat Modification on Nitrate Removal and Retention in Freshwater and Coastal Ecosystems