Computational investigation on the switching efficiency of diarylethene: Comparison between the first hyperpolarizability and exchange interaction