Rare earth yields in the interaction of 28-GeV protons with uranium, bismuth and gold