Mechanistic framework for dry etching, beam assisted etching and tribochemical etching