Flexure Design Optimization for Foldable Structures