Improvements to stellar structure models, based on a grid of 3D convection simulations – I. T(τ) relations