Theoretical study of native and rare-earth defect complexes in β-PbF 2