Cosmogony of the Solar System