Reliability-aware design for nanometer-scale devices