Application of machine learning to discover new intermetallic catalysts for the hydrogen evolution and the oxygen reduction reactions