Magnetic systems for wide-aperture neutron polarizers and analyzers