Digital deflection, {i.e. optical switching} in an optical waveguide structure {with intersecting or branching waveguides, e.g. X-switches and Y-junctions}