Simulating the X-ray evolution of late-type galaxies with population synthesis