Condition-based maintenance for serial multistage manufacturing system considering reliability and quality over a finite horizon | Synapse