Realization of nuclear targets by ion implantation: the 17O case