Theoretical and experimental investigations of resolution and detection limits in energy-filtering electron microscopy