Polythiophene-based materials for nonvolatile polymeric memory devices