Optical and Energy Loss Spectroscopy of Single-Walled Carbon Nanotubes