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