Direct observation of the energetics at a semiconductor/liquid junction by operando X-ray photoelectron spectroscopy