On the weakly nonlinear three-dimensional instability of shear layers to pairs of oblique waves: the Stokes layer as a paradigm