Formation of 24Na in the interaction of 12 GeV protons with isotopes of uranium and lead