Chlorine dopants in plasma synthesized heteroaromatic polymers