Application of composite materials in batteries