Calculation of Reaction Profiles behind Steady-State Shock Waves. I. Application to Detonation Waves