Atomically dispersed materials for rechargeable batteries