Joule heating during flash-sintering