Numerical simulations of radiation and heating from non-thermal electrons in solar flares