Functionalization of polypyrroles with acids and β-diketones as complexing groups. Part 1: electrochemical synthesis and properties