Integrated Circuit Test Optimization for Comprehensive Defect Characterization