Molybdenum, tungsten doped cobalt phosphides as efficient catalysts for coproduction of hydrogen and formate by glycerol electrolysis.