Genetic analysis of crawling and swimming locomotory patterns in C. elegans