X-ray absorption spectroscopy with time-tagged photon counting: application to study the structure of a Co(i) intermediate of H2 evolving photo-catalyst.