Determination of the gluon condensate from data in the charm-quark region