First yo need to identify the impurities. You can use energy dispersive x-ray (EDX) analysis with is common to all SEMs (scanning electron microscopes). You can also call the supplier of the material and ask them what the impurity is and how to remove it.