Biological phosphate removal from wastewater with oxygen or nitrate in sequencing batch reactors