Self-purification model for metal-assisted chemical etching of metallurgical silicon