A carbon nanotube cortical neuron with spike-timing-dependent plasticity