Environmentally friendly reduction of a platinum catalyst precursor supported on polypyrrole