Stable nanosecond pulse generation from a graphene-based passively Q-switched Yb-doped fiber laser.