Energy-conserving integration of constrained Hamiltonian systems – a comparison of approaches