Gravar-mail: Regulation of two motor patterns enables the gradual adjustment of locomotion strategy in Caenorhabditis elegans