Self-folding using capillary forces