Kinematic and Static Design of Rigid Origami Structures: Application to Modular Yoshimura Patterns