Experimental study of the poloidal flow effect on magnetic island dynamics in LHD and TJ-II