High resolution electron scattering facility at the Darmstadt linear accelerator (DALINAC): II. Beam transport system and spectrometer (energy-loss system)