Instantaneous quality factor extraction with applications to tight gas reservoir