Local structure around Er in silica and sodium silicate glasses