Text this: Solving the Direct and Inverse Diffraction Problems on Flat Objects with Different Types of Field Nonlinearity.