Optimal inventory cycle in a two-stage supply chain incorporating imperfect items from suppliers