optimized nanophotonic structures