Dynamics of core transport barrier formation and expansion in the DIII-D tokamak