Generalized Reciprocity for Gratings of Finite Conductivity