As a fragile ceasefire begins, Tehran is using lessons from the Iran-Iraq War to prepare for an American escalation.