Measurement of inclusive production of neutral hadrons from Z decays