Triplet states of the amide group. Trapped electron spectra of formamide and related molecules