A quantum mechanical analysis of the electrostatics in multiple-gate FETs