An adjoint-based approach for finding invariant solutions of Navier–Stokes equations