Quantifying large-scale cortical dynamics and plasticity during task learning