A study of the Fe-based superconductor SmFeAsO1−xFx by x-ray photoelectron spectroscopy