A measurement of the b-quark mass from hadronic Z decays