A low cost modulation technique for magneto-optical measurements