Continuous dependence of attractors on parameters of non-autonomous dynamical systems and infinite iterated function systems