Text this: Optimizing the external optical cavity parameters for performance improvement of a fiber grating fabry-perot laser