Functional Nanofibers for Flexible Electronics