Aspects of the production of FAB and SIMS mass spectra