Ice nucleation imaged with X-ray spectro-microscopy