On commuting graphs of semisimple rings