Defect structure dependence on composition in lithium niobate