Recording morphogen signals reveals mechanisms underlying gastruloid symmetry breaking