Optical detection of magnetic nanoparticles in colloidal suspensions