Reactive ion beam etching of polyimide thin films