Computer-aided transistor design, characterization, and optimization