Conformation dependence of pKa: Ab initio and DFT investigation of histidine