Interfaces and internal layers in a turbulent boundary layer