General theory of the fuzzy integral