Second harmonic generation enhanced with inversely designed plasmonics for nonlinear metamaterials