Collective excitations in layered materials with momentum-resolved electron energy loss spectroscopy