A New Paradigm for Knowledge Discovery and Design in Nanophotonics Based on Artificial Intelligence