Mesoscopic Stern-Gerlach device to polarize spin currents