Measurement of the Z-boson mass using Z gamma events at the centre-of-mass energies above the Z pole