Study of fluorine losses and spectroscopic properties of Er3+ doped oxyfluoride silicate glasses and glass ceramics