Existence of formal integrals of symplectic integrators