Compact Model for Multiple Independent Gates Ambipolar Devices