Free-electron-light interactions in nanophotonics