Structure of thermal boundary layers in turbulent Rayleigh–Bénard convection