Controlling anammox speciation and biofilm attachment strategy using N-biotransformation intermediates and organic carbon levels