A Data-Driven Approach for Inverse Optimal Control