Influence of rotational energy on ion-molecule cross sections: Ortho and para hydrogen and deuterium