The effect of plasma profile variation on the stability of the n = 1 internal kink mode in rotating tokamak plasmas