Investigation of optical and electrical properties of metal-insulator-metal devices