Nonlinear optical characterization of organic polymers and small molecules and their application towards optical power limiting