Formation of microfibers and nanofibers by capillary-driven thinning of drying viscoelastic filaments