Mechanism of etching and of surface modification of polyimide in RF and LF SF6-O2 discharges