Random lattice deformations in rare-earth-doped cubic hexafluoroelpasolites: High-resolution optical spectroscopy and theoretical studies