On the relation between measures defining the Stieltjes and the inverted Stieltjes functions