Quantification of active biomass in wastewater and activated-sludge treatment plants