Conditions for partial nitrification in biofilm reactors and a kinetic explanation