Optical diagnostics for plasma-surface interaction in CF4∕Ar radio-frequency inductively coupled plasma during Si and SiO2 etching