Mesoscale PIC simulation of double layers and electron holes affecting parallel and transverse accelerations of electrons and ions