Building the Galilean moons system via pebble accretion and migration: a primordial resonant chain