A general recurrence relation for moments of order statistics in a class of probability distributions and characterizations