Gettering of metallic impurities in photovoltaic silicon