Strong electron correlation effects in X-ray and photoelectron spectra of high-temperature superconductors