Control of light by curved space in nanophotonic structures