Unified mechanism of intergranular embrittlement based on non-equilibrium grain boundary segregation