3nm Nanosheet FET vs. FinFET Comparison and Optimization with device/circuit co-design framework