Computational design of promising 2D electrode materials for Li-ion and Li–S battery applications