Oscillator strengths of defects in insulators : The generalization of Smakula's equation