Ni1−xMxSe2 (M = Fe, Co, Cu) nanowires as anodes for ammonia-borane electrooxidation and the derived Ni1−xMxSe2−y–OOH ultrathin nanosheets as efficient electrocatalysts for oxygen evolution