Modeling nitrous oxide production during biological nitrogen removal via nitrification and denitrification: extensions to the general ASM models.