Use of x-ray absorption spectroscopy in electronic structure studies of high-Tc superconducting oxides