Self-folding thin-film materials: From nanopolyhedra to graphene