A Generalized Analytical Model for Joule Heating of Segmented Wires