Metal-insulator-metal diodes fabricated on flexible substrates