Techniques for accurate quantitative analysis of C. elegans behavior