The use of sources and sinks in solving two-dimensional heat conduction problems with change of phase in arbitrary domains