Sensory processing by neural circuits in Caenorhabditis elegans