Exact invariant solutions for grooved Couette and channel flows