A Comprehensive Study of Infrared OH Prompt Emission in Two Comets. I. Observations and Effective g-Factors