Ozone abundance on Mars from infrared heterodyne spectra II. Validating photochemical models