An Integrated Inventory Model for Three-tier Supply Chain Systems