Optimization of synthesis conditions of polypyrrole from aqueous solutions