Understanding the Reduction of Transition-metal Phosphates to Transition-metal Phosphides by Combining Temperature-programmed Reduction and Infrared Spectroscopy.