Stability of g-frames