Nonlinear optical properties of polyanilines and derivatives