A nonnegative sparsity induced similarity measure with application to cluster analysis of spam images