Simultaneous all-optical logic AND and OR gates using photonic circuits