Deep Energy-Based Modeling of Discrete-Time Physics