Textile flame retardancy through surface-assembled nanoarchitectures