pdFOAM : a PIC-DSMC code for near-Earth plasma-body interactions