Measuring the helicity of carbon nanotubes