Combination and QCD analysis of charm production cross section measurements in deep-inelastic ep scattering at HERA