Smartphone diagnostics for cultural heritage