Nucleon-nucleon scattering in the quark-cluster model