Measurement of isolated photon production in hadronic Z decays