On the application of maximum entropy to the moments problem