SMS dit: Folding of graphene and other two-dimensional materials