Investigations on parasitic oscillations in megawatt gyrotrons