Adaptive finite elements method for the solution of the Maxwell equations in inhomogeneous magnetized plasma