A novel diagnostics for polymer degradation based on near-field two-photon photoluminescence