Dimensional reduction of a V1 ring model with simple and complex cells