Rotational excitation of OH in collisions with CO, N2, and CO2