Development of high-rate activated sludge processes for energy