Nanoparticle arrays patterned by electron-beam writing: structure, composition, and electrical properties.