Generation of focusing ion beams by magnetized electron sheath acceleration