Changes in cortical and subcortical unit activity during behavioral conditioning