Analysis of plasma detachment in the magnetic thrust chamber using full particle-in-cell simulation