Mechanistic study on nickel-molybdenum based electrocatalysts for the hydrogen evolution reaction