Optical spectroscopy and energy-filtered transmission electron microscopy of surface plasmons in core-shell nanoparticles