Luminescent and paramagnetic properties of nanoparticles shed light on their interactions with proteins