Differentiable Cloth Simulation for Inverse Problems