Gyrotron Research at SPbPU: Diagnostics and Quality Improvement of Electron Beam