Hydrodynamic modelling of accretion impacts in classical T Tauri stars: Radiative heating of the pre-shock plasma