Design and optimization of short-period wigglers for free-electron lasers