Electric current-assisted joining of similar/dissimilar materials