QCD moment sum rules for Coulomb systems: the charm and bottom quark masses