Subtleties in the Averaging of Hybrid Systems with Applications to Power Electronics