Electronic and electromagnetic properties of nanotubes