Gorenstein injective modules and a generalization of Ischebeck formula