Collective flow model for the pion transverse momentum spectra from relativistic nuclear collisions at CERN