Gamma-ray energies determined with a lithium-drifted germanium detector