Ion implantation in alkaline earth oxides