Charge exchange reactions and charge and mass distributions in nuclei