Treatment or purification of solutions