Event based neuron models for biological simulation: a model of the locomotion circuitry of the nematode C. elegans