The use of the gas-filled magnet technique for the detection of medium mass ions