Numerical modelling of heating in porous planetesimal collisions