3D Nanophotonic Structures Constructed in a Curved Space Inspired by General Relativity Concepts