Design and fabrication of a mid-infrared carbon dioxide sensor for the application in greenhouse environment