Determination of the radiative decay width of the ηc meson