Fabrication of shell-and-tube heat exchangers with dissimilar metals