A multihalogenation strategy for ambipolar transistors and high-gain inverters with good noise margin.