Surface characterization by photocurrent measurement