A gated integration method for the detection of unevenly distributed ions bunches in laser resonant ionization mass spectrometry