A characterization of integral input-to-state stability