The effect of reactor configuration and operational mode on Microthrix parvicella bulking and foaming in nutrient removal activated sludge systems.