Energy-based Continuous Inverse Optimal Control