Magnesium-doped lithium niobate for higher optical power applications