Real-time monitoring of lubrication properties of magnesium stearate using NIR spectrometer and thermal effusivity sensor.