Electrostatic Control of Ions and Molecules in Nanofluidic Transistors