Principles of Nonlinear Optical Spectroscopy