A hierarchical optimization engine for nanoelectronic systems using emerging device and interconnect technologies