Chemical stone analysis