Motor-pattern production: interaction of chemical and electrical synapses