Anisotropy of the core-hole relaxation in x-ray-absorption spectroscopy as probed in square planar cuprates.