The BPS spectra of two-dimensional supersymmetric gauge theories with twisted mass terms