Extending Lagrangian and Hamiltonian Neural Networks with Differentiable Contact Models (Supplementary Materials)