Extension of the intranuclear cascade model for photonuclear reactions at energies up to 10 GeV