Gamma-ray measurements with a bent-crystal spectrometer