Silicon extraction and purification