Photoluminescence of heavily doped and compensated germanium