Considerations on the design of a digital optical switch