Metric distances derived from cosine similarity and Pearson and Spearman correlations