Generalization Error of the Tilted Empirical Risk