The relationship between headline, core, and energy inflation: A wavelet investigation