Defect and impurity thermodynamics in rutilelike systems