UVI colour gradients of 0.4 < z < 1.4 star-forming main-sequence galaxies in CANDELS: dust extinction and star formation profiles