The study of electron source with flat diamond field emission cathode