James McAvoy did intense research for Split