ATLAS: Adapting Trajectory Lengths and Step-Size for Hamiltonian Monte Carlo