Characterization of ultrashort pulse formation in passively mode-locked fiber lasers