Model study for the nonequilibrium magnetic domain structure during the growth of nanostructured ultrathin films