Er + medium energy ion implantation into lithium niobate