Smart data treatment of ToF­SIMS spectra and depth profiles of polymer‐based materials