Exact solutions of nonlinear equations and the method of operator identities