Reliability-driven circuit optimization and design