Gravar-mail: Structure dictates the mechanism of ligand recognition in the histidine and maltose binding proteins