Inclusive production of charged hadrons in photon-photon collisions