The role of thalamic state in dynamic tactile encoding