Frequency stabilization of an Er-doped fiber laser with a collinear 2f-to-3f self-referencing interferometer