Reactions between plasma discharges and polymer films containing metal precursors