Numerical modelling of plasma-spacecraft charging effect by using particle-in-cell method