Electromagnetic response of carbon nanotubes and nanotube ropes