What is the primary purpose of using high-performance liquid chromatography (HPLC) in pharmaceutical analysis?