Flow study in relativistic nuclear collisions by Fourier expansion of azimuthal particle distributions