Subtleties in the averaging of a class of hybrid systems with applications to power converters