Quantum mechanical analysis of the electrostatics in silicon nanowires and carbon nanotubes FETs