Periodic array of metal nanowires as promising front electrode for solar cells