Nonlinear wave mixing in two-dimensional semiconductors