1D3V PIC simulation of propagation of relativistic electron beam in an inhomogeneous plasma