Formation and evolution of the Solar System