Shock vaporization and the accretion of the icy satellites of Jupiter and Saturn