A unified Lyapunov framework for stabilization and tracking of nonholonomic systems