Cooperative jahn-teller distortions and site preferences in Cu2+-containing spinels