In situ x-ray photoelectron spectroscopy studies of water on metals and oxides at ambient conditions