Bimetallic carbides embedded in heteroatom-doped carbon nanotubes for efficient electrocatalytic hydrogen evolution reaction and high-performance lithium storage