A Krylov subspace method for nonlinear operator equations