Structural influence on electrical properties of metal-oxide-metal devices