Quantized topological pumping of solitons in nonlinear photonics and ultracold atomic mixtures