A BIST Scheme Based on Selecting State Transition of Folding Counters