PATCH: a deep learning method to assess heterogeneity of artistic practice in historical paintings