Delve into the scientific process of nitrification, explaining the roles of ammonia-oxidizing bacteria and nitrite-oxidizing bacteria in converting ammonia to nitrate, and how this impacts water quality.