Nitrification and denitrification in water and soil environments