Neural mechanisms underlying the segmental and generalized cord shortening reflexes in the leech.