Promotion effect of metal phosphides towards electrocatalytic and photocatalytic water splitting