Inclusive photoproduction of pions, kaons and protons at 6 GeV