Analysis of the gradient descent method in problems of the signals and images restoration