Structure, mechanism, and electronic properties of organic molecular n-dopants and n-doped materials