Mass balance of nitrogen, and estimates of COD, nitrogen and phosphorus used in microbial synthesis as a function of sludge retention time in a sequencing batch reactor system.