Just to remind that sharingan genjutsu is just considered as a NINJA TOOL according to Kishi.
And whosever has superior skill can even turn a less powered Tool into a powerful one and even better than the better one.
Proof ?
Sasuke normal sharingan + cm >>> MS and able to break out of it.
So in this case Madara genjutsu that used on Raikage wasnt even a fodder one, it was probably much better than Itachi's, since some one like Sasuke > Itachi then no doubt Madara genjutsu tech > Itachi.
Manga fact, kishi words, cant deny.