Effects of the interplanetary magnetic field on the twisting of the magnetotail: Global MHD results