Development of a compact on-beam SEOP neutron spin filter