Ptychography for Nonlinear Optical Microscopy