Text this: Physical-aware pattern selection for stuck-at faults