Optical nonlinearities in substituted conjugated polymers