Surface characterization of pharmaceutical solids