Mechanism of substrate specificity in Bacillus subtilis ResA, a thioredoxin-like protein involved in cytochrome c maturation.