Confinement in single walled carbon nanotubes investigated by spectroscopic ellipsometry