An extended x-ray absorption fine structure study of rare-earth phosphate glasses near the metaphosphate composition