A Semi-implicit Particle-in-cell Expanding Box Model Code for Fully Kinetic Simulations of the Expanding Solar Wind Plasma