Egypt has sentenced three ISIS militants to death for crimes including kidnapping Egyptian citizens and espionage.