A theoretical study of cadmium—ethylenediamine and —ammonia exciplexes. Comparison with experiments