Search for collective transverse flow using particle transverse momentum spectra in relativistic heavy-ion collisions