Energy transfer and dynamic luminescence of material containing rare earth ions used in X-ray medical imaging