A study first to demonstrate nanoscale all-optical logic circuits