Neural Mechanisms of Transient and Sustained Cognitive Control during Task Switching