A model for robust electrostatic design of nanowire FETs with arbitrary polygonal cross sections