System size, energy and pseudorapidity dependence of directed and elliptic flow at RHIC