Economic upgrading and green strategies in global value chains