Gradient elution in liquid chromatography: XII. Optimization of conditions for gradient elution