A Corticothalamic Circuit for Dynamic Switching between Feature Detection and Discrimination