A Generalization of the Phillips Curve