How to fold an origami DNA (or RNA) helix