Plasmonic resonances of nanowires with periodically corrugated cross sections