Applying RF current harmonics for end-point detection during etching multi-layered substrates and cleaning discharge chambers with NF3 discharge