Oxygen chemistry of shocked interstellar clouds. I - Rate constants for thermal and nonthermal internal energy distributions