Electronic states of core levels and valence bands for KxC60 studied by X-ray photoelectron spectroscopy