In-situ synchrotron x-ray photoelectron spectroscopy study of medium-temperature baking of niobium for SRF application