Local Gating of Carbon Nanotubes