Explainable machine learning for materials discovery: application to catalysts for the HER and ORR