Characterization and modeling of thermally-induced doping contaminants in high-purity germanium