Textile-based microfluidics: modulated wetting, mixing, sorting, and energy harvesting