Effect of the Rashba splitting on the RKKY interaction in topological-insulator thin films