Finding the 3D structure of a molecule in its IR spectrum