Nonlinear Optical Devices