Joint optimisation of maintenance and production policies with subcontracting and product returns