Studies of copper valence states with Cu L3 x-ray-absorption spectroscopy.