The neutron decay retardation spectrometer aSPECT: Electromagnetic design and systematic effects