Q-duals and Q-approximate duals of g-frames in Hilbert spaces