Accurate identification of whispering gallery mode patterns of gyrotron with stabilized electro-optic imaging system