THE ELECTRON GUN WITH VARIABLE BEAM PROFILE FOR OPTIMIZATION OF ELECTRON COOLING