X-RAY SPECTRA AND ELECTRONIC STRUCTURE OF HIGH Tc SUPERCONDUCTORS