A joint age-based system replacement and component reallocation maintenance policy: Optimization, analysis and resilience. (July 2023)