Mesophilic, thermophilic and temperature phased anaerobic digestion of waste activated sludge