Formation of native defects in the γ-ray detector material Cs2Hg6S7