Determination of diffusion length and surface recombination velocity by light excitation