what is the tendency of a substance to undergo a chemical reaction