Optical and magneto-optical di(cid:27)ractometer for studies of patterned magnets