thermodynamics of phosphorus and sulphur removal