Influence of PbX 2 (X = F, Cl, Br) content and thermal treatment on structure and optical properties of lead borate glasses doped with rare earth ions