Solid solutions in (waste)water and waste