Free-electron interactions with light using the inverse Cerenkov effect