Photoluminescence and minority carrier diffusion length imaging in silicon and GaAs