Gravar-mail: Predicting ligand-binding function in families of bacterial receptors