Analysis of electromagnetic oscillations in dielectric cathode with grid electrodes