An analysis of hydroforming of longitudinally curved boxes with regular polygonal cross-section