A physically-based model of folded surfaces with application to plant leaves