Beam energy dependence of the azimuthal anisotropic flow from RHIC