Surface photovoltage phenomena: theory, experiment, and applications