Charge-sensitive infrared phototransistors: Characterization by an all-cryogenic spectrometer