Medium effect on the Jahn-Teller distortions of the tetramethylallene radical cation