100-femtosecond MeV electron source for ultrafast electron diffraction