Regulating the electronic structure of ReS2 by Mo doping for electrocatalysis and lithium storage