Three-dimensional lithography by elasto-capillary engineering of filamentary materials