Aerosol formation in reacting gases: Theory and application to the anhydrous NH3‐HCL system