Line-shape analysis of optical spectra in metaphosphate glasses doped with erbium ions