Decoding sequential versus nonsequential two-photon double ionization of helium using nuclear recoil