Optical activation and excitation mechanisms of Er implanted in Si