Exciton states and optical properties of carbon nanotubes