Baryon-baryon scattering in a one-boson-exchange-potential approach. III. A nucleon-nucleon and hyperon-nucleon analysis including contributions of a nonet of scalar mesons