Displacement damage induced by cosmic rays in silicon devices using geant4 toolkit for space applications