Engineering the electronic structure of single-walled carbon nanotubes by chemical functionalization.