Molecular self-assembly of conducting polymers