Measurement of the production rates of η and η′ in hadronic Z decays