Time reversibility and energy conservation for Lagrangian systems with nonlinear nonholonomic constraints