Self-compensation in halogen doped CdTe grown by molecular beam epitaxy