Mining waste could be used as an ingredient for cheaper hydrogen fuel production