The turbulent structure of the internal boundary layer near the shore