The small-gain theorem, the passivity theorem and their equivalence