The influence of second-scale convection on the thickness of continental lithosphere and crust