X-Compact: An Efficient Response Compaction Technique for Test Cost Reduction