Text this: Q-switched Thulium-doped fiber laser using nitrogen-doped graphene in linear and ring cavity