Generation and division of excitation energy in heavy-ion collisions studied by measuring charged-particle survival fractions