Thermoelastic bending of the lithosphere: implications for basin subsidence