Programmable Controlling of Multiple Spatial Harmonics via a Nonlinearly Phased Grating Metasurface