AI trained on photos of salt ‘stains’ can predict their chemical composition