What factors contributed to the shift from the geocentric model to the heliocentric model of the solar system?