Characterization of diamagnetism inside an ECR thruster with a diamagnetic loop