Safe limits for the application of nonlinear optical microscopies to cultural heritage: A new method for in-situ assessment