Electron or ion-optical arrangements for separating electrons or ions according to their energy {or mass}