Electrothermal formulation of the partial element equivalent circuit method