Measurement of inclusive ω and η′ production in hadronic Z decays