Structure of the near-Earth plasma sheet during tailward flows