Computational design of clay minerals: hydration of Mg-exchange cation located in ditrigonal cavity