On the determination of the reaction rate constant and selectivity in gas and liquid-phase organic reactions: temperature and solvent effects