Curved space nanophotonics inspired by general relativity