Measurement of magnetically induced linear optical birefringence and dichroism in colloidal dispersions