A characterization of integral input-to-state stability for hybrid systems