Approximation of solutions of some heat problems with third boundary conditions by means of functional integrals