Design of Large Engineered Second-Order Optical Nonlinearities with Machine Learning