Thermal treatment of sewage sludge