Vibrational spectroscopy of OH-related groups in Ce3+- and Gd3+-doped silicate glasses