Photoluminescence–electricity–magnetism trifunction simultaneously assembled into one flexible nanofiber