Fast-electron spectroscopy of collective excitations in solids