Simulation of the response of a PIPS detector using GEANT4 code