Characterization of Ag- and W-implanted polyimide films