Investigation of gas detection based on fiber laser intracavity absorption spectroscopy