Insight into conformationally-dependent binding of 1-n-alkyl-3-methylimidazolium cations to porphyrin molecules using quantum mechanical calculations.