Nanotorsional actuator using transition between flattened and tubular states in carbon nanotubes