Proximity gettering of transition metals in separation by implanted oxygen structures