Compact mode-locked Er-doped fiber laser for broadband cavity-enhanced spectroscopy