An iterative algorithm for the stable solution of inverse heat conduction problems in multiply-connected domains