Hybrid supervised and reinforcement learning for the design and optimization of nanophotonic structures | Synapse