Near-infrared spectroscopic applications in pharmaceutical particle technology