Formation of Jupiter and Conditions for Accretion of the Galilean Satellites