Determination of doses for ion implantation in garnet films