Study of the JUNO experiment sensitivity to the determination of the neutrino mass ordering when observing neutrino signals from core-collapse supernovae