Pulsating high gradient magnetic separation for purification of quartz