Computer simulation of the quadrupole mass filter