Learning Lyapunov-Stable Dynamical Systems through Imitation