Electric-thermo-mechanical analysis of Joule heating in dilatometric specimens