Charge distribution in photofission of U238 and Th232