Partial-wave analysis of nucleon-nucleon scattering below the pion-production threshold