Automated imaging of neuronal activity in freely behaving Caenorhabditis elegans