Investigation of the Impacts of Thermal Activated Sludge Pretreatment and Development of a Pretreatment Model