Spatial structure of internal and edge transport barriers