Built-In Self-Test Circuit Optimization for Embedded Cores