Purification of solar grade silicon using electromagnetic field