Tuning the structure and magnetic behavior of Ni-Ir-based nanoparticles in ionic liquids.