Modeling for Generating Femtosecond Pulses in an Er-Doped Fiber Using Externally Controlled Spectral Broadening and Compression Mechanisms