Nucleon number dependence of longitudinal radii in ion-ion collisions as a signature of the onset of collective expansion