Thermal stability of metal films on polyimide