Using optogenetics to study habits