General method for the analysis of pharmaceutical dosage forms by high-performance liquid chromatography