Hard-X-ray-induced excited-spin-state trapping.