Text this: Q-switched and mode-locked erbium-doped fiber laser using gadolinium oxide as saturable absorber