Averaged model for power converters with state jumps