Transverse momentum distributions of hadrons produced in αα and αp collisions at the CERN intersecting storage rings