Development of a high-brightness electron beam system towards femtosecond microdiffraction and imaging and its applications