Nonlinear optical properties of organic molecules and crystals