Spectroscopic analysis of binary and ternary complexes formed by histidine and glutamic acid