Gamma Rays Rejection In A Gadolinium Based Semiconductor Neutron Detector