Realization of all-optical frequency-encoded dibit-based OR and NOR logic gates with simulated verification