Comparison of hard and soft x-ray photoelectron spectra of silicon