Laser absorption diagnostics for internal combustion engines and ammonia combustion