Facile synthesis of polypyrrole functionalized nickel foam with catalytic activity comparable to Pt for the poly-generation of hydrogen and electricity