Diffraction studies of rare-earth phosphate glasses