Dynamical systems theory in cognitive science and neuroscience