Structure and Nonlinear Optical Properties of Lanthanide Borate Glasses