X-ray spectroscopy studies of nonradiative energy transfer processes in luminescent lanthanide materials