N ematode movement along a chemical gradient in a structurally heterogeneous environment . 2 . Theory