Phase-Transition Behavior in Array Diagnosis Using Sparse Recovery Techniques