Origin and fate of nitrite in model ecosystems: case studies in groundwater and constructed wetlands