Machine learning enables physics-inspired metrics for analyzing art