Soft X-ray and electron spectroscopy to determine the electronic structure of materials for photoelectrochemical hydrogen production