Ionic and polaronic hopping in glass