Machine learning–assisted global optimization of photonic devices | Synapse