Statistical significance of phase-shift analyses for heavy-ion elastic-scattering data