Multi-functional yolk-shell structured materials and their applications for high-performance lithium ion battery and lithium sulfur battery