One-dimensional particle-in-cell simulation of a current-free double layer in an expanding plasma