General Principles of Defect Engineering