Polymer/metal interfaces studied by carbon near-edge x-ray absorption fine structure spectroscopy