Four-phase patterns in a forced nonlinear optical oscillator