On the extension of measures with values in partially ordered semigroups