Folding to Curved Surfaces: A Generalized Design Method and Mechanics of Origami-based Cylindrical Structures