A Differentiable Physics Engine for Deep Learning in Robotics