quartz processing plant working principle