Stochastic comparisons of order statistics from heterogeneous populations, with applications in reliability