The oxygen coordination of metal ions in phosphate and silicate glasses studied by a combination of x-ray and neutron diffraction