Process analysis and optimization of continuous pharmaceutical manufacturing using flowsheet models