A topological formula for the Kähler potential of 4D N = 1, 2 strings, and its implications for the moduli problem