Quark-antiquark composite systems: The Bethe-Salpeter equation in the spectral-integration technique