Construction, characterization and applications of a compact mass-resolved low-energy ion beam system