Transition between functional regimes in an integrate-and-fire network model of the thalamus