purification and refining of pharmaceutical