Text this: Investigations of After Cavity Interaction in Gyrotrons Including the Effect of Non-uniform Magnetic Field