A design for an electromagnetic filter for precision energy measurements at the tritium endpoint