Effects of substrates on the nonlinear optical responses of two-dimensional materials.