The thickness of the planetary boundary layer