Electrochemical polymerization of pyrrole over AZ31 Mg alloy for biomedical applications