The role of chemical bonding in grain boundary embrittlement