Point defects in ceramics and polymers