Diagnostics of wall paintings: A smart and reliable approach