Electrochemical synthesis and properties of layer-structured polypyrrole/montmorillonite nanocomposite films