Excited-state enhancement of optical nonlinearities in linear conjugated molecules