Stability of homogeneous geodesics in low-dimensional Lie groups