Spectral analysis of the Neumann-Poincaré operator and characterization of the stress concentration in anti-plane elasticity