Geant4 and MCNPX simulations of thermal neutron detection with planar silicon detectors