The preparation of polypyrrole–Fe3O4 nanocomposites by the use of common ion effect