Neural ensemble dynamics in behaving animals : computational approaches and applications in amygdala and striatum