Porous field emission devices based on polyimide membranes using diode and triode configurations