Applicability of the Galerkin—Petrov method in quantum chemistry. The quartic oscillator problem