Recovery of rare earths and precious metals from waste electrical and electronic equipment by acid leaching and immobilized chelating agents