A diffusion model for nonreactive ion loss in pulsed ion cyclotron resonance experiments