The valence of copper in LaCuO3: An x-ray absorption study