Inhibiting polysulfide shuttling using dual-functional nanowire/nanotube modified layers for highly stable lithium–sulfur batteries