A comparison of the performance of copper-doped germanium and mercury-doped germanium detectors