Development of compact and innovative optical sensors for trace gas detection