Phosphorus removal in the activated sludge process