The effect of heteroatom doping on the active metal site of CoS2 for hydrogen evolution reaction