Structure and properties of tungstates formed in W-Mg-O systems