On the solution of three-dimensional inverse heat conduction in finite media