Electronic and magnetic properties of polypyrrole films depending on their one-dimensional and two-dimensional microstructures