Chemical dynamics of vibrationally excited molecules: Controlling reactions in gases and on surfaces