Measurement of minority carrier capture cross sections and application to gold and platinum in silicon