Unions agree to outsource part of Q400 production