Optical Codes for Packet Detection in the OpMiGua Switch Architecture