Influence of composition on the electro-optic coefficients of Mg-doped lithium niobate