Nonlinear optical frequency generation enabled by 2D structuring of matter