Clusters of galaxies: magnetic fields and nonthermal emission