The evolution of organic material on Asteroid 162173 Ryugu and its delivery to Earth