Second-Harmonic Generation from Metasurfaces with Spatially Engineered Nonlinearity