Mode-lock, Q-switch and CW operation of an Yb-doped double-clad fiber ring laser