The role of oxygen in optical activation of Er implanted in Si