Kinetic and mechanistic studies on the Heck reaction using real-time near infrared spectroscopy