AR Rahman pulls out of Hollywood film The Seventh Son