Nonlinear optical properties of InPS3