Ellipsometric characterization of damage profiles using an advanced optical model