Joint optimization of maintenance and spare parts management in upstream–downstream systems under quality control | Synapse