How do scientists determine the age of galaxies?