Nonlinear Optical Probes For Organic Field Effect Transistors And Halide Perovskites