Determination of carrier concentration from photoelectrolysis spectra of semiconducting electrodes