Hydrogen-evolving semiconductor photocathodes: nature of the junction and function of the platinum group metal catalyst