Techniques for efficient and robust defect detection in analog and mixed signal circuits