Rheology and spatially resolved structure of cetyltrimethylammonium bromide wormlike micelles through the shear banding transition