SU(2) and SU(4) Kondo effects in carbon nanotube quantum dots