Purification plants and sludge treatment