Measurement of the product mass distributions from heavy-ion-induced nuclear reactions: I: Gamma-ray spectrometric product identification