Equation for the rate constant for dissociation of diatomic molecules in gases