DFT based calculation of interaction energy between metal halides and organic bases