Electromagnetic composite nanofibers