Endogenous skill heterogeneity and inflation