Cloaking by anomalous localized resonance via spectral analysis of a Neumann-Poincaré operator