ROLE OF INTRINSIC AND EXTRINSIC DEFECTS IN THE ELECTRO-OPTIC RESPONSE OF MAGNESIUM DOPED LITHIUM NIOBATE