A new handheld tool lets scientists diagnose the chemical reaction behind “art acne”—and learn how it can be prevented