XPS and XANES Study of Cu Valence and Structure in High Tc Superconducting Oxides