Text this: Ideal cycle analysis of a pulse detonation engine