Solute segregation and stress intensity factors at the edge of elastic thin-film electrodes under chemical equilibrium