Dopamine signaling tunes spatial pattern selectivity in C. elegans