Randomized Dimensionality Reduction for Euclidean Maximization and Diversity Measures