Mechanisms of ion formation and fragmentation by fast-atom bombardment and matrix-assisted laser desorption ionization mass spectrometry