Design of unreliable flow lines: How to jointly allocate buffer space and spare parts | Synapse