Synthesis of polyaniline-based inks for inkjet printed devices: electrical characterization highlighting the effect of primary and secondary doping