A method and a plant for reducing sludge produced in a water purification process