Stellar evolution with rotation X. Wolf-Rayet star populations at solar metallicity