A port-Hamiltonian formulation of coupled heat transfer