Performance and energy aspects of single and two phase thermophilic anaerobic digestion of waste activated sludge