Optics and nonlinear optics of liquid crystals