A compact double-gate MOSFET model comprising quantum-mechanical and nonstatic effects