Resolution, efficiency and stability of HPGe detector operating in a magnetic field at various gamma-ray energies