Optimal choice of integral parameter in a process of solving the inverse problem for heat equation