Experimental and theoretical study of magnetic ordering and local atomic polarization in Ru-substituted Lu2Fe17