Charge modulation of magnetization in X-doped MgO nanotube clusters (X=C, N)