Reconstruction of complex-valued tensors in the Maxwell system from knowledge of internal magnetic fields